Skip to content

Conversation

@Xstoudi
Copy link
Contributor

@Xstoudi Xstoudi commented Jan 1, 2026

Move watch dependency reporting earlier in module resolution to ensure file dependencies are tracked even when parsing fails.

Fixes: #61153

Move watch dependency reporting earlier in module resolution to ensure
file dependencies are tracked even when parsing fails.

Fixes: nodejs#61153
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/loaders

@nodejs-github-bot nodejs-github-bot added esm Issues and PRs related to the ECMAScript Modules implementation. needs-ci PRs that need a full CI run. labels Jan 1, 2026
@codecov
Copy link

codecov bot commented Jan 1, 2026

Codecov Report

❌ Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 88.53%. Comparing base (ce2ec3d) to head (91fddbe).
⚠️ Report is 11 commits behind head on main.

Files with missing lines Patch % Lines
lib/internal/modules/esm/loader.js 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #61232      +/-   ##
==========================================
- Coverage   88.54%   88.53%   -0.01%     
==========================================
  Files         704      704              
  Lines      208734   208743       +9     
  Branches    40271    40267       -4     
==========================================
- Hits       184823   184814       -9     
- Misses      15932    15948      +16     
- Partials     7979     7981       +2     
Files with missing lines Coverage Δ
lib/internal/modules/esm/loader.js 96.96% <83.33%> (+<0.01%) ⬆️

... and 26 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@marco-ippolito
Copy link
Member

Can you add a test?

@Xstoudi
Copy link
Contributor Author

Xstoudi commented Jan 2, 2026

Just added a test, let me know if that's too broad and shouldn't be tested through cli.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

esm Issues and PRs related to the ECMAScript Modules implementation. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

node --watch won't restart after SyntaxError [ERR_INVALID_TYPESCRIPT_SYNTAX] and the file is subsequently modified

4 participants